package com.yy.dto.mother;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description:
 * @ClassName: CommonResponseDTO
 * @author: 姚欣宏
 * @date: 2023.10.20
 */
@Data
@ApiModel("通用响应数据传输对象")
public class CommonResponseDTO<T> {

    @ApiModelProperty(value = "代码", example = "1")
    private String code;

    @ApiModelProperty(value = "错误代码", example = "0")
    private String errCode;

    @ApiModelProperty(value = "消息", example = "操作成功")
    private String msg;

    @ApiModelProperty(value = "追踪ID", example = "bc65f59e5e817f98")
    private String traceId;

    @ApiModelProperty(value = "响应数据详情")
    private T data;

}

